# 可变参数
def foo(*nums):
    for num in nums:
        print(num)
foo(1)
foo(3,4)
arr = [8,9,10]
# 可变参数传参[必须是iterable对象]
foo(*arr)
foo(*(3,3))
foo(*1)

